#ifndef CGI_GUEST_H
#define CGI_GUEST_H

#include <utils/dbapi.h>

enum {
    GUEST_COL_NAME,
    GUEST_COL_KEY,
    GUEST_COL_CREATED_TIME,
    GUEST_COL_NUM
};

#define GUEST_NAME_LEN (10*3)
#define GUEST_KEY_LEN 18

int get_guest_id(char *name, char *key);
int get_guest_name(int id, char *name, u32 len);
void init_guest(void);

#endif // CGI_GUEST_H
